<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>五四宪法历史资料陈列馆</title>
    <link rel="stylesheet" href="/static/css/style.css">
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/common.js"></script>
</head>
<body>
<form name="order_info" id="order_info" action="personal" method="post">
    <div class="main order_info1">
        <div class="top">
            <a class="back" href="javascript:history.back(-1)"><img src="static/image/left.png" alt="">返回</a>
            预约信息
        </div>
        <input type="hidden" name="id" value="{$person.id}">

        <div class="order_info container">
            <div class="s-title">用户名：</div>
            <input type="text" name="name" title="预约联系人" value="{$person.name}">
            <div class="s-title">密码：</div>
            <input type="password" name="password" title="手机号" class="password" value="">
            <div class="s-title">确认密码：</div>
            <input type="text"  title="手机号" class="password1" value="">
        </div>
        <input type="hidden" name="status" value="1">
        <a href="javascript:;" class="submit" onclick="checkParse()">完成</a>
    </div>

</form>
<script>
    function checkParse(event) {
                if($(".name") == "") {
                    // alert("用户名不能为空")
                    layer.alert('用户名不能为空',{
                        icon: 2,
                        title:false,
                        time:5000
                    })
                    event.preventDefault();
                }
                if($(".password").val() == ""){
                   // alert("密码不能为空")
                    layer.alert('密码不能为空',{
                        icon: 2,
                        title:false,
                        time:5000
                    })
                   event.preventDefault();
                }
                if($(".password").val() != $(".password1").val()){
                       // alert("两次密码不一致")
                    layer.alert('两次密码不一致',{
                        icon: 2,
                        title:false,
                        time:5000
                    })
                   event.preventDefault();
                }
            $("#order_info").submit();

    }
</script>
</body>
</html>